export const isDev = process.env.NODE_ENV !== 'production'

export const URLS = {
    logout: '#/login',
    login: '#/login',
}

export const PAGE_DEFAULT = 0
export const PAGE_SIZE = 6
export const FORMAT_DATE = 'YYYY-MM-DD'
export const FORMAT_DATE_TIME = 'YYYY-MM-DD hh:mm:ss'

// 0-草稿 1-待取票 2-开工条件确认中 3-已中止 4-作业中 5-正常还票 6-异常还票 7-待还票
export const WORK_STATUS = {
    draft: 0,
    waitToGet: 1,
    confirming: 2,
    stop: 3,
    working: 4,
    finished: 5,
    error: 6,
    waitToBack: 7,
    signOff: 8,
}

export const WORK_STATUS_NAME = {
    [WORK_STATUS.draft]: '草稿',
    [WORK_STATUS.waitToGet]: '待取票',
    [WORK_STATUS.confirming]: '开工条件确认中',
    [WORK_STATUS.stop]: '已中止',
    [WORK_STATUS.working]: '作业中',
    [WORK_STATUS.finished]: '正常还票',
    [WORK_STATUS.error]: '异常还票',
    [WORK_STATUS.waitToBack]: '待还票',
    [WORK_STATUS.signOff]: 'WOCO-SCR-signOff异常',
}
